home *** CD-ROM | disk | FTP | other *** search
- ' **********************************************************
- ' GeneratePackBrowseTable
- '
- '
- ' **********************************************************
-
- sub GeneratePackBrowseTable()
- Dim arrPacks()
- Dim iDbsMax
- Dim iNum
- Dim strPackName
- Dim strPackDesc
- Dim strUniqueID
-
- Set theTable = document.all.item("PackBrowseTableTable")
- if (theTable.rows.length > 0) then
- Set theTable = nothing
- Exit Sub
- End if
- Set theTable = nothing
-
- Call getPackageGuids(arrPacks)
- iDbsMax = UBound(arrPacks) - 1
- For iNum = 0 to iDbsMax
- Call getPackageNameDesc(strPackName, strPackDesc, arrPacks(iNum))
- strUniqueID = "bp" & arrPacks(iNum)
- Call GeneratePackBrowsePacRowDyn(-1, strPackName, strPackDesc, arrPacks(iNum), strUniqueID)
- Next
-
- if (iDbsMax < 0) then
- PackBrowseHeader.style.display = "none"
- document.all.PackBrowseTable.style.display = "none"
- document.all.PackBrowseHorzRule.style.display = "none"
- Dim theTable
- Dim myNewRow
- Dim myNewCell
- Set theTable = document.all.item("PackBrowseTableTable")
- Set myNewRow = theTable.insertRow(iRowIndex)
- Call myNewRow.setAttribute("zzType", 10)
- Set myNewCell = myNewRow.insertCell()
- myNewCell.className = "DBTableText"
- myNewCell.width = "100%"
- myNewCell.vAlign = "top"
- myNewCell.innerText = GetResString(85) ' There are no DTS Packages...
- Set myNewCell = nothing
- else
- PackBrowseHeader.style.display = ""
- document.all.PackBrowseTable.style.display = ""
- document.all.PackBrowseHorzRule.style.display = ""
- end if
- end sub
-
-
- Sub GeneratePackBrowsePacRowDyn(iRowIndex, strName, strDesc, strGuid, strUniqueID)
- Dim strHTML
- Dim theTable
- Dim myNewRow
- Dim myNewCell
- strName = MyHTMLEncode(strName)
- strDesc = MyHTMLEncode(strDesc)
-
- Set theTable = document.all.item("PackBrowseTableTable")
- Set myNewRow = theTable.insertRow(iRowIndex)
- Call myNewRow.setAttribute("zzType", 10)
- Set myNewCell = myNewRow.insertCell()
- myNewCell.className = "DBHighlightedTableText"
- myNewCell.width = "50%"
- myNewCell.vAlign = "top"
- strHTML = ""
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"">"
- strHTML = strHTML & " <tr>"
- strHTML = strHTML & " <td width=""10"" nowrap></td>"
- strHTML = strHTML & " <td class=""DBHighlightedTableText"" width=""12"" id=""" & strUniqueID & """ nowrap><a class=""TableRowButtonPlain"" href language=""jscript"" onclick=""BrwOpen("" & strUniqueID & "")"">+</a></td>"
- strHTML = strHTML & " <td class=""DBHighlightedTableText"" width=""24"" nowrap><img src=""repsch.gif""></td>"
- strHTML = strHTML & " <td class=""DBHighlightedTableText"" valign=""center"">" & strName & "</td>"
- strHTML = strHTML & " </tr>"
- strHTML = strHTML & " </table>"
- myNewCell.innerHTML = strHTML
- Set myNewCell = nothing
- Set myNewCell = myNewRow.insertCell()
- myNewCell.className = "DBHighlightedTableText"
- myNewCell.vAlign = "top"
- strHTML = ""
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"">"
- strHTML = strHTML & " <td class=""DBHighlightedTableText"" WIDTH=100% align=""left"" valign=""top"">" & strDesc & "</td>"
- strHTML = strHTML & " </table>"
- myNewCell.innerHTML = strHTML
- Set myNewCell = nothing
- Set myNewRow = nothing
- Set theTable = nothing
- End Sub
-
-
- Sub GenerateBrowseVerRowDyn(iRowIndex, strName, strVermodtime, strGuid, strUniqueID)
- Dim strHTML
- Dim theTable
- Dim myNewRow
- Dim myNewCell
- strName = MyHTMLEncode(strName)
- strVermodtime = MyHTMLEncode(strVermodtime)
-
- Set theTable = document.all.item("PackBrowseTableTable")
- Set myNewRow = theTable.insertRow(iRowIndex)
- Call myNewRow.setAttribute("zzType", 11)
- Set myNewCell = myNewRow.insertCell()
- myNewCell.className = "DBTableText"
- myNewCell.width = "50%"
- myNewCell.vAlign = "top"
- strHTML = ""
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"">"
- strHTML = strHTML & " <tr>"
- strHTML = strHTML & " <td width=""35"" nowrap></td>"
- strHTML = strHTML & " <td class=""DBTableText"" width=""12"" id=""" & strUniqueID & """ nowrap><a class=""TableRowButtonPlain"" href language=""jscript"" onclick=""BrwOpen("" & strUniqueID & "")"">+</a></td>"
- strHTML = strHTML & " <td class=""DBTableText"" width=""24"" nowrap><img src=""repver.gif""></td>"
- strHTML = strHTML & " <td class=""DBTableText"" valign=""center""><a class=""TableRowButton"" href language=""jscript"" onclick=""ShowPackFromVers("" & strName & "","" & strGuid & "")"">" & strVermodtime & "</a></td>"
- strHTML = strHTML & " </tr>"
- strHTML = strHTML & " </table>"
- myNewCell.innerHTML = strHTML
- Set myNewCell = nothing
- Set myNewCell = myNewRow.insertCell()
- myNewCell.vAlign = "top"
- strHTML = ""
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"">"
- strHTML = strHTML & " <td class=""DBTableText"" WIDTH=100% align=""left"" valign=""top""> </td>"
- strHTML = strHTML & " </table>"
- myNewCell.innerHTML = strHTML
- Set myNewCell = nothing
- Set myNewRow = nothing
- Set theTable = nothing
- End Sub
-
-
- Sub GenerateBrowseLinRowDyn(iRowIndex, arrLinDataValues, strGuid, strUniqueID)
- Dim strHTML
- Dim theTable
- Dim myNewRow
- Dim myNewCell
- Dim L_packageStr
- Dim L_srcDestStr
- arrLinDataValues(0) = MyHTMLEncode(arrLinDataValues(0))
- arrLinDataValues(3) = MyHTMLEncode(arrLinDataValues(3))
- arrLinDataValues(4) = MyHTMLEncode(arrLinDataValues(4))
- arrLinDataValues(5) = MyHTMLEncode(arrLinDataValues(5))
-
- L_packageStr = GetResString(32)
- L_srcDestStr = GetResString(33)
- Set theTable = document.all.item("PackBrowseTableTable")
- Set myNewRow = theTable.insertRow(iRowIndex)
- Call myNewRow.setAttribute("zzType", 12)
- Set myNewCell = myNewRow.insertCell()
- myNewCell.className = "DBTableText"
- myNewCell.width = "50%"
- myNewCell.vAlign = "top"
- strHTML = ""
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"" border=""0"">"
- strHTML = strHTML & " <tr>"
- strHTML = strHTML & " <td width=""60"" nowrap></td>"
- strHTML = strHTML & " <td class=""DBTableText"" width=""12"" nowrap> </td>"
- strHTML = strHTML & " <td class=""DBTableText"" width=""24"" nowrap><img src=""replin.gif""></td>"
- strHTML = strHTML & " <td class=""DBTableText"" valign=""center""><a class=""TableRowButton"" href language=""jscript"" onclick=""ShowLinPackageProp("" & GetResString(83) & arrLinDataValues(0) & "","" & strGuid & "")"">" & GetResString(83) & arrLinDataValues(0) & "</a></td>"
- strHTML = strHTML & " </tr>"
- strHTML = strHTML & " </table>"
- myNewCell.innerHTML = strHTML
- Set myNewCell = nothing
- Set myNewCell = myNewRow.insertCell()
- myNewCell.className = "DBTableText"
- myNewCell.vAlign = "top"
- strHTML = ""
- strHTML = strHTML & " <table frame=""void"" cellspacing=""0"" cellpadding=""0"" width=""100%"">"
- strHTML = strHTML & " <tr>"
- strHTML = strHTML & " <td class=""DBTableText"" WIDTH=33% align=""left"" valign=""top"">" & arrLinDataValues(3) & "</td>"
- strHTML = strHTML & " <td class=""DBTableText"" WIDTH=33% align=""left"" valign=""top"">" & arrLinDataValues(4) & "</td>"
- strHTML = strHTML & " <td class=""DBTableText"" WIDTH=33% align=""left"" valign=""top"">" & arrLinDataValues(5) & "</td>"
- strHTML = strHTML & " </tr>"
- strHTML = strHTML & " </table>"
- myNewCell.innerHTML = strHTML
- Set myNewCell = nothing
- Set myNewRow = nothing
- Set theTable = nothing
- End Sub
-
-
- Function BrwAddVersions(iRowIndex, strUniqueID)
- Dim strGuid
- Dim arrItems()
- Dim iMax
- Dim iNum
- Dim strPackGuid
- Dim strVermodtime
-
- ' the right 49 characters of the strUniqueID is the GUID
- strGuid = Right(strUniqueID, 49)
-
- Call findVersionGuids(arrItems, strGuid)
- iMax = UBound(arrItems) - 1
- if iMax >= 20 then
- if (MsgBox(GetResString(70), vbYesNoCancel, GetResString(71)) <> vbYes) then
- BrwAddVersions = "false"
- Exit Function
- end if
- end if
- For iNum = 0 to iMax
- Call getVersionName(strName, arrItems(iNum))
- strPackGuid = getPackageGuidFromVers(arrItems(iNum))
- Call getPackageVermodtime(strVermodtime, strPackGuid)
- strVermodtime = GetResString(81) & strVermodtime
- strUniqueID = strUniqueID & arrItems(iNum) ' make a unique id by adding our GUID
- Call GenerateBrowseVerRowDyn(iRowIndex+1+iNum, strName, strVermodtime, arrItems(iNum), strUniqueID)
- Next
- BrwAddVersions = "true"
- End Function
-
-
- Function BrwAddLineages(iRowIndex, strUniqueID)
- Dim strGuid
- Dim arrItems()
- Dim iMax
- Dim iNum
- Dim arrLinDataValues()
-
- ' the right 49 characters of the strUniqueID is the GUID
- strGuid = Right(strUniqueID, 49)
-
- Call findLineageGuids(arrItems, strGuid)
- iMax = UBound(arrItems) - 1
- if iMax >= 20 then
- if (MsgBox(GetResString(70), vbYesNoCancel, GetResString(71)) <> vbYes) then
- BrwAddLineages = "false"
- Exit Function
- end if
- end if
- For iNum = 0 to iMax
- Call getLinProperties(arrLinDataValues, arrItems(iNum))
- strUniqueID = strUniqueID & arrItems(iNum) ' make a unique id by adding our GUID
- Call GenerateBrowseLinRowDyn(iRowIndex+1+iNum, arrLinDataValues, arrItems(iNum), strUniqueID)
- Next
- BrwAddLineages = "true"
- End Function
-